.data-field {
  width: 50%;
  padding: @padding-sm @padding-md;
  display: flex;
  flex-direction: column;
  border-right: 1px solid @border-color-base;
}

.data-select {
  display: flex;
  flex-direction: column;
  padding-bottom: @padding-sm;
  border-bottom: 1px solid @border-color-base;

  label {
    margin-bottom: @margin-md;
  }

  :global {
    .ant-select-arrow {
      font-size: 14px;
    }
  }
}

.field-select {
  height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field-list {
  padding-top: @padding-sm;
  height: 50%;
  flex: 1;
  display: flex;
  flex-direction: column;

  &:first-child {
    border-bottom: 1px solid @border-color-base;
  }

  .head {
    margin-bottom: @margin-md;
    display: flex;
    align-items: center;

    label {
      flex: 0 0 36px;
    }
  }

  .list {
    flex: 1;
    margin-right: -@margin-lg;
    margin-left: -@margin-lg;
    margin-bottom: @margin-md;
    overflow: hidden auto;

    & > .fields-item {
      &:first-child {
        margin-top: 0;
      }
    }
  }
}

.fields-item {
  max-width: 100%;
  min-width: 150px;
  width: max-content;
  height: @height-base;
  margin-top: @margin-md;
  padding: 0 @padding-md;
  display: flex;
  align-items: center;
  border-radius: @border-radius-base;
  cursor: default;
}

.field-icon {
  margin-right: @margin-md;
  font-size: @font-size-md;
}

.field-child {
  margin-left: 22px;
}
